{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
    <div class="panel-heading"><div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div></div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in">
                <div class="widget-body no-padding">
                <div class="bootstrap-table"><div class="fixed-table-toolbar"><div class="bs-bars pull-left"><div id="toolbar" class="toolbar"><a href="{:admin_url('admin/tag/index')}" class="btn btn-primary ajax-url"><i class="fa fa-refresh"></i> </a> <a  url="{:admin_url('admin/tag/del')}" target-form="ids" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a> 
                      <span id="selectedChks" style="display:none">已选择<strong></strong>记录</span>
                    </div></div></div></div>
                    <div class="fixed-table-container" style="padding-bottom: 0px;" id="contents">
                    <div class="fixed-table-body">
                   <form class="ids"> 
              <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
              <thead>
              <tr style="height:45px;">
              <th align="center" class="bs-checkbox"><input name="chkall" type="checkbox" id="chkall"></th>
              <th style="text-align:center;vertical-align: middle; ">{eq name="orders" value="tag_id desc"}<a href="{:admin_url('admin/tag/index',array('sid'=>$sid,'type'=>'tag_id','order'=>'asc'))}" class="btn-link sort ajax-url">编号 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/tag/index',array('sid'=>$sid,'type'=>'tag_id','order'=>'desc'))}" class="btn-link sort ajax-url">编号 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle; ">{eq name="orders" value="tag_name desc"}<a href="{:admin_url('admin/tag/index',array('sid'=>$sid,'type'=>'tag_name','order'=>'asc'))}" class="btn-link sort ajax-url">标签名称 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/tag/index',array('sid'=>$sid,'type'=>'tag_name','order'=>'desc'))}" class="btn-link sort ajax-url">标签名称 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle; ">{eq name="orders" value="tag_sid desc"}<a href="{:admin_url('admin/tag/index',array('sid'=>$sid,'type'=>'tag_sid','order'=>'asc'))}" class="btn-link sort ajax-url">所属模型 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/tag/index',array('sid'=>$sid,'type'=>'tag_sid','order'=>'desc'))}" class="btn-link sort ajax-url">所属模型 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle; ">{eq name="orders" value="tag_count desc"}<a href="{:admin_url('admin/tag/index',array('sid'=>$sid,'type'=>'tag_count','order'=>'asc'))}" class="btn-link sort ajax-url">收录数量 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/tag/index',array('sid'=>$sid,'type'=>'tag_count','order'=>'desc'))}" class="btn-link sort ajax-url">收录数量 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle; ">操作</th>
            </tr>
             </thead>
               <tbody> 
               {notempty name="data"}            
               {volist name="data" id="vo"}
                <tr>
                <td class="bs-checkbox" style="text-align:center;vertical-align: middle;"><input name="id[]" type="checkbox" value="{$vo['link_id']}" id="checkbox"></td>
                <td style="text-align:center;vertical-align: middle;">{$vo.tag_id}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.tag_name|tag_url=###,$vo.tag_sid}</td>
                <td style="text-align:center;vertical-align: middle;"><a class="btn-link" href="{:admin_url('admin/tag/index',array('sid'=>$vo.tag_sid,'type'=>$type,'order'=>$order))}"> {$vo.tag_modeltitle}</a></td></td>
                <td style="text-align:center;vertical-align: middle;">{$vo.tag_count}</td>
                <td style="text-align:center;vertical-align: middle;">
                <a href="{$vo['tag_url']}" class="btn btn-success btn-editone btn-xs"><i class="fa fa-pencil"></i> 查看</a>
                <a url="{:admin_url('admin/tag/del' , array('id' => $vo['tag_name']))}" class="confirm btn btn-danger btn-xs confirm ajax-get"><i class="fa fa-trash-o"></i> 删除</a>
                </td></tr>
 {/volist}  
 {else/}
                  <tr>
                    <td style="text-align:center;vertical-align: middle;" colspan="6" >抱歉，没有找到相关内容！</td>
                  </tr>
                  {/notempty}
                  </tbody>
                </table>
              </form>
            </div>
            <div class="fixed-table-pagination" style="overflow:hidden">
              <div class="pull-left pagination-detail"><span class="pagination-info">共{$list->total()}条 {$list->currentPage()}/{$list->lastPage()} </span><span class="page-list">每页显示 {$list->listRows()} 条</span></div>
              <div class="pull-right pagination">
                <ul class="pagination">
                  {$page}
                </ul>
              </div>
            </div>
          </div>
        </div>
        <div class="clearfix"></div>
      </div>
    </div>
  </div>
</div>
</div>
